package com.zmzncs.lmtc.module.shop.pojo.shop_info;

import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.Max;
import javax.validation.constraints.NotNull;
import javax.validation.constraints.Size;
import java.io.Serializable;
import java.math.BigDecimal;

/**
 * <p>
 * 商户-信息
 * </p>
 *
 * @author 高博文
 * @since 2021-05-20
 */
@Data
public class ShopInfoAddForm implements Serializable {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "商户名称",required = true)
    @NotNull
    @Size(max = 15)
    private String shopName;

    @ApiModelProperty(value = "经度",required = true)
    @NotNull
    private String longitude;

    @ApiModelProperty(value = "纬度",required = true)
    @NotNull
    private String latitude;

    @ApiModelProperty(value = "地址",required = true)
    @NotNull
    @Size(max = 75)
    private String shopAddress;

    @ApiModelProperty(value = "电话")
    @Size(max = 11)
    private String telephone;

    @ApiModelProperty(value = "联系人")
    @Size(max = 15)
    private String username;

    @ApiModelProperty(value = "logo",required = true)
    @NotNull
    private String logo;

    @ApiModelProperty(value = "经营类型(1 餐饮，2 加油站，3 洗车，4 养车，5 商超，6 其他)",required = true)
    @NotNull
    private Integer businessType;

    @ApiModelProperty(value = "开户银行",required = true)
    @NotNull
    @Size(max = 50)
    private String bankName;

    @ApiModelProperty(value = "开户名称",required = true)
    @NotNull
    @Size(max = 50)
    private String accountName;

    @ApiModelProperty(value = "银行账号",required = true)
    @NotNull
    @Size(max = 20)
    private String bankAccount;

    @ApiModelProperty(value = "平台分润比率",required = true)
    @NotNull
    @Max(value = 100)
    private BigDecimal platformDivide;

    @ApiModelProperty(value = "车场分润比率",required = true)
    @NotNull
    @Max(value = 100)
    private BigDecimal parkDivide;

}
